package day1101_4;

import java.util.Scanner;
public class FF2 {
    public static void main(String[] args) {
        Scanner  s=new Scanner(System.in);//2.
        System.out.println("请输入一个总金额:");
        double jinE=s.nextDouble();
        //买东西，  总金额
        // 总金额 <250
        // 250   500 金额*0.05
        if(jinE<250){
            System.out.println("您应付金额为" + jinE);
        }else if(250<=jinE &&  jinE<500){
            System.out.println("您应付金额为" +jinE*0.05);
        }else{
            System.out.println("您应付金额为" +jinE*0.15);
        }
    }
}
